// JavaScript Document
function YapYapDelete(parent,child){
	if(confirm('Potvrdite brisanje veze.')){
		LoadRSDoc("komitenti.php?a=yapyap&mod=del&parent="+parent+"&child="+child,"afterYapYap");
	}
}
function afterYapYap(response){
	var tmp = response.split("{!}",2);
	alert(tmp[1]);
	if(tmp[0]){
		var forma = document.getElementById("YapYapFilterForm");
		submitForm(forma,'komitenti.php','POST','setContent',1);
	}
}

function YapYapAdd(btn){
	var forma = btn.parentNode;
	var parent= forma.elements["filter_parent"].value;
	var child = forma.elements["filter_child"].value;
	if(parent>0 && child>0){
		LoadRSDoc("komitenti.php?a=yapyap&mod=add&parent="+parent+"&child="+child,"afterYapYap");
	}
}